<div class="part2">
  {foreach $list as $k=>$v}
    {$count = $v.property_value|count}
    <input type="hidden" name="property{$v.id}" class="property{$v.id}" value="{if $count == 1}{$v.property_value.0.id}{/if}">
    <p class="p sel-color js_skuPropertyGroup property{$v.id}" data-property_id="{$v.id}">
      <span class="name">{$v.title}</span>
      {if $v.title == '颜色'}
        {$tmp = 'color-box'}
      {else}
        {$tmp = 'size-box'}
      {/if}
      <span class="{$tmp}">
        {foreach $v.property_value as $k1=>$v1}
          {$check_property = goods_helper::check_property($goods_id, $v1.id)}
          <a href="javascript:void(0)" class="a {if $check_property == 0}unable{elseif $count == 1}curr{/if} {if $v1.icon}js_icon{/if} js_sku js_sku{$v.id}" data-value="{$v1.tmp_value}" data-property_value_id="{$v1.id}" {if $v1.icon}data-list_icon="{_image($v1.icon, 'list')}" data-big_icon="{_image($v1.icon, 'big')}"{/if}>
            {if $v1.icon}
              <image src="{_image($v1.icon, 'small')}">
            {else}
              {$v1.tmp_value}
            {/if}
          </a>
        {/foreach}
      </span>
    </p>
  {/foreach}
  {if $stock}
  <p class="buy-num">
    <span class="name">购买数量</span>
    <span class="add-sub clearfix">
      <a href="javascript:void(0);" class="sub sub-disabled"></a>
      <input type="text" value="1" class="txt1 jsNum js_skuNum" data-stock="{$stock}">
      <a href="javascript:void(0);" class="add"></a>
    </span>
  </p>
  {/if}
</div>
<!--end part2-->